package cn.ggcms.cms.biz;

import java.util.List;

import cn.ggcms.cms.dao.SoftWaresDao;
import cn.ggcms.cms.vo.SoftWares;

public class SoftWaresBiz implements SoftWaresDao {

	private SoftWaresDao softWaresDao;

	public void setSoftWaresDao(SoftWaresDao softWaresDao) {
		this.softWaresDao = softWaresDao;
	}

	public boolean doDeleteSoftWaresById(int id) {
		return this.softWaresDao.doDeleteSoftWaresById(id);
	}

	public boolean doInsertSoftWares(SoftWares softWares) {
		return this.softWaresDao.doInsertSoftWares(softWares);
	}

	public SoftWares finSoftWaresById(int id) {
		return this.softWaresDao.finSoftWaresById(id);
	}

	public List<SoftWares> finSoftWaress() {
		return this.softWaresDao.finSoftWaress();
	}

	public SoftWares findSoftWares(SoftWares softWares) {
		return this.softWaresDao.findSoftWares(softWares);
	}

	public boolean doUpdateSoftWares(SoftWares softWares) {
		return this.softWaresDao.doUpdateSoftWares(softWares);
	}

	public List<SoftWares> findSoftWaresByPage(String hql, int firstResult,
			int maxResults) {
		return this.softWaresDao.findSoftWaresByPage(hql, firstResult,
				maxResults);
	}

	public int getSize() {
		return this.softWaresDao.getSize();
	}

}
